package com.gdones.bootserver.bus.param.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdones.bootserver.bus.param.dto.Param;
import com.gdones.bootserver.bus.param.dto.ParamDataDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 字典主表，信息描述表 Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-03-27
 */
@Mapper
public interface ParamMapper extends BaseMapper<Param> {

    /**
     * 字典表查询-不分页
     * @param param
     * @return
     */
    List<Param> getParamListNoPage(Param param);

    IPage<Param> getParamListPage(IPage<Param> page,@org.apache.ibatis.annotations.Param("param") Param param);

    int deleteParamInfosByParamId(@org.apache.ibatis.annotations.Param("paramID") String paramID);

    List<ParamDataDto> getParamDataByCode(@org.apache.ibatis.annotations.Param("paramCode") String paramCode);
}
